﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MamiMasterPage.master" AutoEventWireup="true"
    CodeFile="Articles.aspx.cs" Inherits="Administration_Articles" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit.HTMLEditor"
    TagPrefix="cc2" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContentHolder" runat="Server">
    <cc1:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
    </cc1:ToolkitScriptManager>
    <div id="breadcrumbs">
        <a href="default.aspx">Administrare</a> » <a href="Articles.aspx">Editare articole</a>
        <asp:Literal ID="litNav" runat="server" Visible="true"></asp:Literal>
    </div>
    <div class="container">
        <h1>
            <asp:Literal ID="litTitle" runat="server" /></h1>
        <div class="center red bold">
            <asp:Literal ID="litMessage" runat="server" /></div>
        <asp:Panel ID="pnlSearch" runat="server">
            <asp:TextBox ID="txtSearch" runat="server" Width="300" />
            <asp:Button Text="Cauta" ID="btnSearch" runat="server" OnClick="btnSearch_Click" />
            <cc1:AutoCompleteExtender ID="AutoCompleteExtender1" runat="server" TargetControlID="txtSearch"
                ServiceMethod="GetCompletionList" UseContextKey="True">
            </cc1:AutoCompleteExtender>
            <asp:Repeater ID="repSearchResult" runat="server" OnItemDataBound="repSearchResult_ItemDataBound">
                <HeaderTemplate>
                    <br />
                    <asp:Literal ID="litResultsCount" runat="server" />
                    articole gasite!
                    <ul>
                </HeaderTemplate>
                <ItemTemplate>
                    <li><a href="articles.aspx?ID=<%# DataBinder.Eval(Container.DataItem, "ID") %>" title="<%# DataBinder.Eval(Container.DataItem, "Title") %>">
                        <%# DataBinder.Eval(Container.DataItem, "Title") %></a></li>
                </ItemTemplate>
                <FooterTemplate>
                    </ul></FooterTemplate>
            </asp:Repeater>
        </asp:Panel>
        <asp:Panel ID="pnlEdit" runat="server" Visible="false">
            <table cellpadding="0" cellspacing="4" border="0" width="100%">
                <tr>
                    <td>
                        Titlu
                    </td>
                    <td colspan="2">
                        <asp:TextBox ID="txtTitle" runat="server" Width="100%" />
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="Camp obligatoriu"
                            ControlToValidate="txtTitle" Display="Dynamic" />
                    </td>
                </tr>
                <tr>
                    <td>
                        Continut
                    </td>
                    <td colspan="2">
                        <cc2:Editor ID="htmlContent" runat="server" Width="100%" Height="500" />
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="Camp obligatoriu"
                            ControlToValidate="htmlContent" Display="Dynamic" />
                    </td>
                </tr>
                <tr id="trParent" runat="server">
                    <td>
                        Categorie parinte
                    </td>
                    <td colspan="2">
                        <asp:DropDownList ID="ddlParentCateg" runat="server" Width="100%">
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <td>
                        Data postarii
                    </td>
                    <td>
                        <asp:TextBox ID="txtDatePosted" runat="server" Enabled="false" />
                        <asp:Image ID="imgCal" ImageUrl="~/Images/CalendarImg.png" runat="server" />
                        <cc1:CalendarExtender ID="calDatePosted" runat="server" TargetControlID="txtDatePosted"
                            Format="MM/dd/yyyy" PopupButtonID="imgCal">
                        </cc1:CalendarExtender>
                    </td>
                    <td rowspan="10" valign="top">
                        <asp:Image ID="imgCateg" runat="server" /><br />
                        Incarca alta imagine<br />
                        <asp:FileUpload ID="uplImage" runat="server" />
                    </td>
                </tr>
                <tr>
                    <td>
                        Meta Descriere
                    </td>
                    <td>
                        <asp:TextBox ID="txtWebDesc" runat="server" TextMode="MultiLine" Rows="2" Width="100%" />
                    </td>
                </tr>
                <tr>
                    <td>
                        Cuvinte cheie
                    </td>
                    <td>
                        <asp:TextBox ID="txtKeys" runat="server" TextMode="MultiLine" Rows="2" Width="100%" />
                    </td>
                </tr>
                <tr>
                    <td>
                    </td>
                </tr>
                <tr>
                    <td>
                    </td>
                    <td>
                        <asp:CheckBox ID="chApproved" runat="server" Text="Aprobat pentru publicare" />
                    </td>
                </tr>
                <tr>
                    <td>
                    </td>
                    <td>
                        <asp:CheckBox ID="chFeatured" runat="server" Text="Apare pe prima pagina" />
                    </td>
                </tr>
                <tr>
                    <td>
                        Imagine prima pagina
                    </td>
                    <td>
                        <asp:Image ID="imgFeatured" runat="server" /><br />
                        Incarca alta imagine<br />
                        <asp:FileUpload ID="uplFeatured" runat="server" />
                    </td>
                </tr>
                <tr>
                    <td>
                    </td>
                    <td>
                        <asp:Button ID="btnUpdate" runat="server" Text="Modifica" OnClick="btnUpdate_Click" />
                    </td>
                </tr>
            </table>
        </asp:Panel>
    </div>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="RightContentHolder" runat="Server">
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="SiteStructure" runat="Server">
</asp:Content>
